package com.xls.box2023.utils;

import com.lzz.bottomencapsulation.app.BaseApplication;
import com.lzz.bottomencapsulation.consts.SPConsts;
import com.xls.box2023.entity.UserEntity;

public class SPUtils extends com.lzz.bottomencapsulation.utils.SPUtils {

    public static void saveUserInFo(UserEntity requestData) {
        put(BaseApplication.getBaseApplication(), SPConsts.USER, requestData);
    }

    public static UserEntity getUserInfo() {
       return (UserEntity) get(BaseApplication.getBaseApplication(), SPConsts.USER,new UserEntity());
    }

    public static void saveOpenId(String openID){
        put(BaseApplication.getBaseApplication(),"openID", openID);
    }

    public static String getOpenId(){
        return (String) get(BaseApplication.getBaseApplication(),"openID","");
    }

    public static void saveunId(String openID){
        put(BaseApplication.getBaseApplication(),"unID", openID);
    }

    public static String getunId(){
        return (String) get(BaseApplication.getBaseApplication(),"unID","");
    }
}
